formatted input output functions in c